// 项目报备
import { F } from '../utils/http'
const { GET, POST, EXPORT } = F('propare/')
class ProjectPropare {
  constructor() {}
  types = () => GET('gettypes')
  search = (req) => POST('search', req)
  add = (req) => POST('add', req)
  find = (id) => GET('find/' + id)
  remove = (id) => DELETE('delete/' + id, {})
  groupmsg = () => GET('groupdata')
  homelist = (state, count) => GET('homelist/' + state + '/' + count)
  export = (req) => EXPORT('export', req)
}
const api = new ProjectPropare()
export default api
